package com.hup.utils.io.netty.model;

import com.hup.utils.io.netty.handler.DataCodecHandler;
import lombok.Data;
import lombok.Getter;

/**
 * socket收到的未知数据:[类别]没注册到解码器 {@link DataCodecHandler#registerType(Class)} 的数据
 *
 * @author hugan
 * @date 2021/4/25
 */
@Data
public class UnknownData implements BaseDataPacket {

    @Getter
    private final int type;
    private final int dataLength;

    public UnknownData(int type, int dataLength) {
        this.type = type;
        this.dataLength = dataLength;
    }

}
